package com.tedu.lingmaagent.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(
        name = "API模块"
)
@RestController
@RequestMapping("/api")
public class APIController {
    @Operation(summary = "Request请求发送")
    @RequestMapping("/req")
    public String request(){
        return "request请求";
    }

    @Operation(summary = "Get响应接口")
    @GetMapping(value="/get")
    public String get(){
        return "get请求";
    }

    @Operation(summary = "Post请求方式")
    @PostMapping("/post")
    public String post(){
        return "post请求";
    }

}
